package com.example;


public class ResultInfo {
    private Object data;
    private boolean success = true;
    private String message;

    public ResultInfo(Object data) {
        this.data = data;
    }

    public ResultInfo(String message) {
        this.success = false;
        this.message = message;
    }

    public Object getData() {
        return data;
    }

    public ResultInfo setData(Object data) {
        this.data = data;
        return this;
    }

    public boolean isSuccess() {
        return success;
    }

    public ResultInfo setSuccess(boolean success) {
        this.success = success;
        return this;
    }

    public String getMessage() {
        return message;
    }

    public ResultInfo setMessage(String message) {
        this.message = message;
        return this;
    }
}
